package android.ly.service;

import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;
import android.widget.Toast;

public class MyService extends Service {
	private static final String DEBUG = "debug";
	private Toast toast;


	@Override
	public void onCreate() {
		Log.i(DEBUG, "******onCreate()");
		toast = Toast.makeText(this, "onCreate()", Toast.LENGTH_SHORT);
		toast.show();
		super.onCreate();
	}

	@Override
	public void onDestroy() {
		Log.i(DEBUG, "******onDestroy()");
		toast = Toast.makeText(this, "onDestroy()", Toast.LENGTH_SHORT);
		toast.show();
		super.onDestroy();
	}

	@Override
	public void onStart(Intent intent, int startId) {
		Log.i(DEBUG, "******onStart()");
		toast = Toast.makeText(this, "onStart()", Toast.LENGTH_SHORT);
		toast.show();
		super.onStart(intent, startId);
	}

	@Override
	public IBinder onBind(Intent arg0) {
		Log.i(DEBUG, "******onBind()");
		toast = Toast.makeText(this, "onBind()", Toast.LENGTH_SHORT);
		toast.show();
		return null;
	}

}
